//
//  AudioBookCatagoryCell.m
//  FunRead
//
//  Created by  King on 15/5/27.
//  Copyright (c) 2015年 华东伟. All rights reserved.
//

#import "AudioBookCatagoryCell.h"

@implementation AudioBookCatagoryCell
- (void)dealloc
{
    [_coverSmall release];
    [_play_counts release];
    [_title release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        
        self.coverSmall = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height / 3.0 * 2.0)];
        [self.contentView addSubview:_coverSmall];
        [_coverSmall release];
        
        self.play_counts = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, 20)];
        _play_counts.backgroundColor = [UIColor colorWithWhite:0.5 alpha:0.5];
        _play_counts.font = [UIFont boldSystemFontOfSize:12];
        _play_counts.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_play_counts];
        
        self.title = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height / 3.0 * 2.0, self.contentView.frame.size.width, self.contentView.frame.size.height / 3.0)];
        _title.numberOfLines = 0;
        _title.font = [UIFont boldSystemFontOfSize:16];
        _title.textColor = [UIColor grayColor];
        [self.contentView addSubview:_title];
        [_title release];
        
        
    }
    return self;
}
@end
